/**
 * logistics-platform
 *
 * @author yuanchen
 * @date 2021-10-29 15:43
 */
package store.algorithm.impl;

import store.Item;
import store.algorithm.AbstarctItemChangeValueAlgorithm;

/**
 *
 * @author yuanchen
 * @date 2021-10-29 15:43
 */
public class DefaultItemChangeValueAlgorithm extends AbstarctItemChangeValueAlgorithm {

    @Override
    public void changeCurrent(Item item){
        item.sellIn=item.sellIn-SELL_IN_STEP;
        item.value=item.value-VALUE_STEP;
        if(item.sellIn<0){
            item.value=item.value-VALUE_STEP;
        }

    }


}
